import Login from '@/pages/Login'
import Layout from '@/pages/Layout'
import NotFound from '@/pages/NotFound'
import {
  // BrowerRouter
  // as
  // Router
  Router,
  Route,
  Switch
} from 'react-router-dom'
import history from '@/utils/history.js'
console.log(history)
export function App () {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/login" component={Login} />
        <Route path="/layout" component={Layout} />
        <Route component={NotFound} />
      </Switch>
    </Router>
  )
}

export default App
